import Vue from 'vue'
import App from './App.vue'
import ElementUi from 'element-ui'
import rou from "./router/index.js";
import 'element-ui/lib/theme-chalk/index.css'
import VueAwesomeSwiper from 'vue-awesome-swiper';
import 'swiper/css/swiper.css';
import axios from 'axios';
import store from './store/modules';

import qs from 'qs';
import {
	Message
} from 'element-ui/';
import {
	$get,
	$postkv,
	$postf,
	$postjson,
	$postkk
} from '@/ajax/index2.js'
Vue.config.productionTip = false
Vue.prototype.$message = Message
//  第三方请求 ， 需要设置代理地址 axios.defaults.baseURL='/api;'
Vue.prototype.$axios = axios; // 使用时， this.$axios.请求方式('请求地址')
Vue.prototype.$ip = "http://127.0.0.1:80";
Vue.prototype.$qs = qs;
Vue.prototype.$get = $get
Vue.prototype.$postkv = $postkv
Vue.prototype.$postkk = $postkk
Vue.prototype.$postf = $postf
Vue.prototype.$postjson = $postjson

Vue.use(ElementUi);
Vue.use(VueAwesomeSwiper);
/* Vue.use(axios); */
new Vue({
	router: rou,
	store,
	render: h => h(App),
}).$mount('#app')